#import <UIKit/UIKit.h>
#import "MRViewController.h"

CA_EXTERN NSString * const kUINavigationItemStatusBarStyle;

/*===================================================================
 扩展Item属性，这些属性仅在当前ViewController有效，未设置则使用默认值
 ==================================================================*/
@interface UINavigationItem (MRNavigationController)

@property (nonatomic, copy)	NSString		*language;

@property (nonatomic, assign) CGFloat		alpha;		//导航栏透明度(背景)
@property (nonatomic, assign) BOOL			hidden;		//隐藏导航栏(背景)
@property (nonatomic, assign) BOOL			hidesLine;	//隐藏分隔线

@property (nonatomic, retain) UIColor		*tintColor;			//导航栏按钮颜色
@property (nonatomic, retain) UIColor		*titleColor;		//导航栏标题颜色
@property (nonatomic, retain) UIColor		*barTintColor;		//导航栏背景渲染色

@property (nonatomic, assign) UIStatusBarStyle	statusBarStyle;		//状态栏样式

@end

@interface UINavigationBar (MRNavigationController)

@end

/*===================================================================
 导航视图控制器扩展
 ==================================================================*/
@interface UINavigationController (MRNavigationController)

@property (nonatomic, readonly) UIScreenEdgePanGestureRecognizer	*panGestureRecognizer;

- (UIViewController *)lastViewController;
- (UIViewController *)lastViewController:(NSUInteger)index;

@end

/*===================================================================
 自定义导航视图控制器
 ==================================================================*/
@interface MRNavigationController : UINavigationController <UIGestureRecognizerDelegate, UINavigationControllerDelegate>
{
	UIView		*_target[2];		//目标截图
	
	__weak UIView	*_mainview;
	
	UIImageView		*_shadow;
    UIView          *_shadowView;
	
	NSArray			*_origin;
}

@property (nonatomic, readonly)	UINavigationControllerOperation		operation;

@property (nonatomic, readonly) UIScreenEdgePanGestureRecognizer	*panGestureRecognizer;

@end

@interface UIViewController (MRNavigationController)

- (void)viewDidPushed:(BOOL)animated;

@end
